package cn.javass.dp.command.example2;

public class Client {

    public static void main(String[] args) {
        //按钮命令与主板连接起来
        MainBoardApi mainBoardApi = new GigaMainBoard();

        //连接线连接重启或者开机
        Command command = new OpenCommand(mainBoardApi);
        Command command1 = new ResetCommand(mainBoardApi);
        Command command2 = new UpdateCommand(mainBoardApi);


        //客户端测试
        Box box = new Box();

        box.setCommand(command);
        box.setResetCommand(command1);


        box.openCommand();
        box.resetCommand();

        //接受者  主板    命令对象， 开机 重启   调用者 就是客户端

    }
}
